package com.linjiahao.commonall.exception;

import lombok.Getter;
import lombok.ToString;

/**
 * @ClassName GlobalErrorMessage
 * @Description: TODO
 * @Author linjiahao
 * @Date 24/12/2021
 **/
@Getter
@ToString
public enum GlobalErrorMessage {
    ILLEGAL_REQUEST(-999,"非法请求"),
    TOKEN_IS_NOT_VALIDATE(1003,"token无效或已过期"),
    ;

    public int errorCode;
    public String message;

    GlobalErrorMessage(int errorCode, String message){
        this.errorCode = errorCode;
        this.message= message;
    }

}
